<%--
  Created by IntelliJ IDEA.
  User: abcc
  Date: 2019/10/8
  Time: 11:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="container-fluid">
    <!-- 使页面铺满整个屏幕 -->
    <div class="row">
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container-fluid">
                <div class="navbar-brand" style="margin-left:10px">
                    <a href="${path}/info/index"><img src="http://pz9i3bxwr.bkt.clouddn.com//logo1.png" alt="" style="width: 50px;height: 50px"></a>
                </div>
                <div class="navbar-brand" style="margin-left:10px">
                    <form class="form-horizontal" role="form" action="${path}/search/index" method="get">
                        <div class="form-group has-feedback">
                            <div class="modal-md">
                                <span class="glyphicon glyphicon-search form-control-feedback"></span>
                                <input name="any" type="text" class="form-control input-lg" placeholder="搜'柴犬'试试" id="search">
                            </div>
                        </div>
                    </form>
                </div>
                <%--mynav-underline-active--%>
                <ul class="nav navbar-nav navbar-right">
                    <li class="pure-menu-selected"><a href="${path}/info/index" class="nav-underline"><b>首页</b></a></li>
                    <li><a href="${path}/forumF/forumFather" class="nav-underline"><b>论坛</b></a></li>
                    <li><a href="${path}/pic/list" class="nav-underline"><b>宠物动态</b></a></li>
                    <li><a href="${path}/goods/trading_homepage" class="nav-underline"><b>二手市场</b></a></li>
                    <li><a href="${path}/fun/function" class="nav-underline"><b>趣味专区</b></a></li>
                    <li><a href="${path}/mass/page/${sessionScope.user.id}" class="nav-underline"><b>消息中心
                        <c:if test="${sessionScope.massNum ne 0}">
                        <span class="badge" style="background-color: #ff9b11;margin-top: -4px;margin-left: 3px;">${sessionScope.massNum}</span>
                        </c:if>
                            </b></a></li>
                    <%--<li><a href="person.html" class="nav-underline"><b>我的</b></a></li>--%>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <c:if test="${!empty sessionScope.user}">${sessionScope.user.userName}</c:if>
                            <c:if test="${empty sessionScope.user}">未登录</c:if>
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <c:if test="${empty sessionScope.user}">
                                <li><a href="${path}/user/loginding"><span class="glyphicon glyphicon-log-in" style="margin-top: 0px;margin-right: 5px"></span>登录</a></li>
                                <li><a href="${path}/user/loginding"><span class="glyphicon glyphicon-plus" style="margin-top: 0px;margin-right: 5px"></span>注册</a></li>
                            </c:if>
                            <c:if test="${!empty sessionScope.user}">
                                <li><a href="${path}/info/details"><span class="glyphicon glyphicon-home" style="margin-top: 0px;margin-right: 5px"></span>个人中心</a></li>
                                <li><a href="${path}/user/exit"><span class="glyphicon glyphicon-off" style="margin-top: 0px;margin-right: 5px"></span>安全退出</a></li>
                            </c:if>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </div>
</div>
<script>
    // function tt() {
    //     //后台代码
    //     var any = $("#search").val();
    //     alert(any);
    //     window.location = path + '/search/index/' + any;
    //     }
</script>
</body>
</html>
